#ifndef CUNITTYPE_H
#define CUNITTYPE_H

#include <QObject>
#include "cobject.h"

class CUnitType : public CObject
{
    Q_OBJECT
//    Q_PROPERTY(int id READ id WRITE setId NOTIFY idChanged)
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)

public:
    explicit CUnitType(QObject *parent = 0);
//    int id();
//    void setId(int id);

    QString name();
    void setName(QString name);
signals:
    void idChanged();
    void nameChanged();

public slots:
private:
//    int m_id;
    QString m_name;
};

#endif // CUNITTYPE_H
